<template>
	<view>
		<tui-bottom-popup :show="show" @close="close">
			<scroll-view class="scroll-view_H" scroll-y="true" style="height: 1000rpx;">
				<view class="pay-price" style="padding-top: 120rpx;">
					<view class="icon">
						<image src="/static/pay_success.png" mode=""></image>
					</view>
					<view class="price-data">
						<view class="list">
							<view class="title">支付方式</view>
							<view class="content">：{{zhifu}}</view>
						</view>
						<!-- <view class="list">
							<view class="title">支付金额</view>
							<view class="content" v-if="goods_type!=3">：￥{{price}}</view>
							<view class="content" v-if="goods_type==3">：{{price}}礼品卡</view>
						</view> -->
					</view>
				</view>
				<!-- 跳转按钮 -->
				<view class="skip-btn">
					<view class="btn" @click="onSkip(0)">关闭</view>
					<view class="btn" @click="onSkip(1)">查看订单</view>
				</view>
			</scroll-view>
			
		</tui-bottom-popup>
	</view>
</template>

<script>
	// import webUni from "@/common/uni.webview.js"
	export default {
		name: 'tPayResult',
		props: {
			//控制显示
			show: {
				type: Boolean,
				default: false
			},
			zhifu: {
				type: String,
				default:''
			},
			
			
		},
		data() {
			return {
				
			};
		},
		
		methods: {
			close() {
				this.$emit("close", {})
			},
			hide(){
				this.show = false;
			},
			onSkip(type) {
				switch (type) {
					case 0:
						this.$emit("finish",{"type":0})
						// uni.redirectTo({
						// 	url: '/pages/MyOrderList/MyOrderList?type=0'
						// })
						break;
					case 1:
						this.$emit("finish",{"type":1})
						// uni.switchTab({
						// 	url: '/pages/home/home'
						// })
						break;
				}
			}
		}
	}
</script>

<style scoped lang="scss">
	.pay-price{
		display: flex;
		align-items: center;
		justify-content: center;
		width: 100%;
		height: 200rpx;
		background-color: #FFFFFF;
		.icon{
			width: 150rpx;
			height: 100rpx;
			image{
				width: 100%;
				height: 100%;
			}
		}
		.price-data{
			height: 100rpx;
			margin-left: 50rpx;
			.list{
				display: flex;
				align-items: center;
				width: 100%;
				height: 50rpx;
				.title{
					font-size: 28rpx;
					color: #222222;
				}
				.content{
					font-size: 28rpx;
					color: $base;
				}
			}
		}
	}
	/* 跳转按钮 */
	.skip-btn{
		display: flex;
		align-items: center;
		justify-content: center;
		width: 100%;
		height: 100rpx;
		margin-top: 100rpx;
		.btn{
			display: flex;
			align-items: center;
			justify-content: center;
			width: 40%;
			height: 70%;
			font-size: 26rpx;
			color: #FFFFFF;
			background-color: $base;
			border-radius: 100rpx;
			margin: 0 20rpx;
		}
	}
	/* 为你推荐 */
	.recommend-info{
	  width: 100%;
	  background-color: #f2f2f2;
	  .recommend-title{
	    display: flex;
	    align-items: center;
	    justify-content: center;
	    width: 100%;
	    height: 100rpx;
	    .title{
	      display: flex;
	      align-items: center;
	      image{
	        width: 416rpx;
	        height: 40rpx;
	      }
	    }
	  }
	  .goods-list{
	    display: flex;
	    flex-wrap: wrap;
	    justify-content: space-between;
	    padding: 0 30rpx;
	    .list{
	      width: 49%;
	      height: 540rpx;
	      margin-bottom: 20rpx;
	      background-color: #FFFFFF;
	      border-radius: 10rpx;
	      overflow: hidden;
	      .pictrue{
	        display: flex;
	        justify-content: center;
	        width: 100%;
	        image{
	          height: 350rpx;
	        }
	      }
	      .title-tag{
	        // display: flex;
	        height: 100rpx;
	        padding: 20rpx;
	        .tag{
	          float: left;
	          margin-right: 10rpx;
	          overflow: hidden;
	          text-overflow: ellipsis;
	          display: -webkit-box;
	          -webkit-line-clamp: 2;
	          -webkit-box-orient: vertical;
	          white-space: normal;
	          font-size: 26rpx;
	          line-height: 40rpx;
	          text{
	            font-size: 24rpx;
	            color: #FFFFFF;
	            padding: 4rpx 16rpx;
	            background: linear-gradient(to right,$base,$change-clor);
	            border-radius: 6rpx;
	            margin-right: 10rpx;
	          }
	        }
	      }
	      .price-info{
	        display: flex;
	        flex-wrap: wrap;
	        align-items: center;
	        justify-content: space-between;
	        padding: 0 20rpx;
	        height: 80rpx;
	        .user-price{
	          display: flex;
	          align-items: center;
	          text{
	            color: $price-clor;
	          }
	          .min{
	            font-size: 24rpx;
	          }
	          .max{
	            font-size: 32rpx;
	          }
	        }
	        .vip-price{
	          display: flex;
	          align-items: center;
	          image{
	            width: 26rpx;
	            height: 26rpx;
	            margin-right: 10rpx;
	          }
	          text{
	            color: #fcb735;
	            font-size: 24rpx;
	          }
	        }
	      }
	    }
	  }
	}
	
</style>